package com.bao.ServiceImpl;

import com.bao.Dao.RegionDao;
import com.bao.DaoImpl.RegionDaoImpl;
import com.bao.Emtity.region;
import com.bao.Service.RegionService;

/**
 * Created by TangBaoshan on 2018/8/11.
 */
public class RegionServiceImpl implements RegionService{
    @Override
    public region findregion(int id) {
        RegionDao dao=new RegionDaoImpl();
        return dao.findregion(id);
    }

    @Override
    public int findregionid(String areaName) {
        RegionDao dao=new RegionDaoImpl();
        return dao.findregionid(areaName);
    }

    @Override
    public region findparentIdregion(int parentId) {
        RegionDao dao=new RegionDaoImpl();
        return dao.findparentIdregion(parentId);
    }


}
